package com.yanqu.road.entity.match;

import com.yanqu.road.entity.DataObject;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ：zfr
 * @date ：2021/2/18 14:38
 */
public class MatchData extends DataObject {
    /**
     * 分组id
     */
    private long groupId;
    /**
     * 时间id
     */
    private int timeId;
    /**
     * 等级
     */
    private int level;
    /**
     * 职业类型
     */
    private int type;
    /**
     * 唯一id
     */
    private int id;
    /**
     * 杂艺id
     */
    private int matchId;
    /**
     * 是否分组变动提前结束 进入领奖期
     */
    private boolean isOverForGroupChange;

    /**
     * 分组的区服列表
     */
    private List<Long> serverList = new ArrayList<>();

    public long getGroupId() {
        return groupId;
    }

    public void setGroupId(long groupId) {
        this.groupId = groupId;
    }

    public int getTimeId() {
        return timeId;
    }

    public void setTimeId(int timeId) {
        this.timeId = timeId;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getMatchId() {
        return matchId;
    }

    public void setMatchId(int matchId) {
        this.matchId = matchId;
    }

    public boolean isOverForGroupChange() {
        return isOverForGroupChange;
    }

    public void setOverForGroupChange(boolean overForGroupChange) {
        if (isOverForGroupChange != overForGroupChange) {
            isOverForGroupChange = overForGroupChange;
            setUpdateOption();
        }
    }

    public List<Long> getServerList() {
        return serverList;
    }

    public void setServerList(List<Long> serverList) {
        this.serverList = serverList;
    }
}
